package com.hospital.registration.entity;


import java.util.Date;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 挂号记录表
 * </p>
 *
 * @author 史永康
 * @since 2020-10-22
 */
@Data
@Accessors(chain = true)
public class Registration extends Model<Registration> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 患者id
     */
    private Integer sickpersonId;

    /**
     * 单号
     */
    private String oddnumbers;

    /**
     * 接诊类型
     */
    private Integer subjectId;

    private Integer medicalrecordtypeId;

    /**
     * 医生
     */
    private Integer doctorId;

    /**
     * 挂号费
     */
    private Integer registrationfeeId;

    private Integer medicalexpensesId;

    /**
     * 创建日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date establishdate;

    /**
     * 挂号员
     */
    private Integer userId;

    private Integer medicalrecordstatusId;

    private Integer receivable;

    private Integer netreceipts;


    private String sname;

    private String ssex;

    private String sage;

    private Integer mstatus;

    private String sphone;

    private String sbname;

    private String dname;

    private String mtime;

    private String msname;

    private String msnameu;

    private String reename;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
